﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.BusinessServer.SalesReturnServer.Dto
{
    public class SalesReturnDtoPes
    {
        public int Id { get; set; }
        /// <summary>
        /// 销售Id
        /// </summary>
        public string? SalesId { get; set; }

        /// <summary>
        /// 退货单号
        /// </summary>
        public string? SalesReturnCode { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public string? ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [MaxLength(50)]
        public string? ProductName { get; set; }
        /// <summary>
        /// 存储单位
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specs { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public int SalesReturnNumber { get; set; }
        /// <summary>
        /// 总额
        /// </summary>
        public decimal SalesReturnSum { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        [MaxLength(30)]
        public string? CustomrCode { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(20)]
        public string? Phones { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string? IntState { get; set; }
        public string? IntState2 { get; set; }
        /// <summary>
        /// 是否入账
        /// </summary>
        public bool SalesReturnState { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(20)]
        public string? Phone { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string? DocumentType { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? Creator { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(30)]
        public string? Comment { get; set; }
    }
}
